import React from 'react';
import {Link} from 'react-router';
import {observer, useStaticRendering} from 'mobx-react';
import Store from './store';
import DevTools from 'mobx-react-devtools';

import './index.less';
//component

@observer
export default class view extends React.Component {
    static propTypes = {
        //name: React.PropTypes.string,
    };
    static defaultProps = {};


    name = '<?- orin.componentName ?>';
    store = null;

    constructor(props, context) {

        super(props, context);
        this.name = props.name ? props.name : this.name;
        this.store = new Store({name: this.name});

    }

    componentWillMount() {
        this.store.will();
    }

    componentDidMount() {
        this.store.mount();
    }

    componentWillUnmount() {
        this.store.remove();
    }

    render() {
        return (
            <div className="<?- orin.className ?>">
            </div>
        );
    }
}